<?php
/**
 * Created by PhpStorm.
 * User: ybjaa
 * Date: 2017/5/27
 * Time: 15:13
 */

namespace App\Business\File;


use App\Business\Model\ViewJSSB;
use App\Business\ReturnResult;
use App\Models\View_Biz_YBJ_JSSB_File;
use App\Units;

class GetBiz_YBJ_JSSB_FilesList extends FileBase
{
    protected function Handle()
    {
        $array= View_Biz_YBJ_JSSB_File::all();
        if($array&&$array->count()>0){
            $newArray=Units::ConvertArrayToObject($array->toArray(),ViewJSSB::class);
            return ReturnResult::Success($newArray);
        }


        return ReturnResult::Success(null);



    }

    public function GetBusinessName()
    {
        return "获得关于基数申报的文件列表";
    }


}